import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import lang from 'element-ui/lib/locale/lang/zh-CN'
import locale from 'element-ui/lib/locale'
import '@/static/js/public.js'
import '@/static/css/public.css'
import Axiox from './router/axios'
import { inter } from './router/interface'
locale.use(lang)
Vue.use(Element, { locale })
Vue.config.productionTip = false
Vue.prototype.axios = Axiox
Vue.prototype.inter = inter

Vue.filter('filterTime', function (value) {
  if(!value) return '';
  if (value.indexOf('T') > -1) {
    return value.split("T")[0];
  } else {
    return value;
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
